package condionals;

import app.entity.AdminEntity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

import java.util.Date;

@Configuration
@ComponentScan
@Profile("test")
public class Config {
private static final long beginDateMills=new Date().getTime();
//
//    @Bean
//    @ConditionalCnDate
//    public Studententily studententily(){
//        return  new Studententily();
//    }

    @Bean
    @ConditionClasss(className = "bdqn.entily.Point")
    public AdminEntity studententily(){
        return new AdminEntity();
    }
}
